CFLAGS=

all: threads

ringpuffer.o: ringpuffer.c ringpuffer.h
	 gcc -c -o $@ ringpuffer.c

scheduler.o: scheduler.h mangling.h scheduler.c
	gcc $(CFLAGS) -c scheduler.c

threads: ringpuffer.o scheduler.o threads.h threads.c
	gcc $(CFLAGS) -o threads threads.c ringpuffer.o scheduler.o  -lpthread  -D_PRINT

clean:
	rm -f *~ threads *.o

